# Author : wyq
# 文件的修改

f = open("test1.txt","r",encoding="utf-8")
f_new = open("yesterday.txt","w",encoding="utf-8")

for line in f:
    if "I lived by night and shunned the naked light of day" in line:
        line = line.replace("I lived by night and shunned the naked light of day","这是新的字段啊~~~~~~~~~~~")
    f_new.write(line)
f.close()
f_new.close()